'use strict'

let Sequelize = require('sequelize');
let sequelize = require('../db');

const User = sequelize.define('articles', {
    title: {
        type: Sequelize.STRING(800),
        allowNull: false
    },
    writer:{
        type:Sequelize.STRING
        // allowNull:false
    },
    introdtion:{
        type:Sequelize.STRING
        //allowNull:false
    }
},{

})

module.exports = User;


// User.create({ firstName: "Jane", lastName: "Doe" }).then(jane => {
    // console.log("Jane's auto-generated ID:", jane.id);
// });